package com.yc.yc112plyqnzf.controller;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
public class LoginOut {


    @GetMapping("loginout")
    public void loginOut(HttpServletRequest request,String username){
        request.getSession().removeAttribute(username);
    }
}
